.byqss {
  width: 100vw;
  height: 100vh;
  background-color: #f2f2f2;
  overflow-y: auto;
}

.byqss-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
}

.search-container {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #666;
  cursor: pointer;
  
  &:hover {
    color: #1890ff;
  }
}

.search-input {
  flex: 1;
}

.byqss-history-container {
  background-color: #fff;
  margin-top: 5px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.byqss-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.byqss-history-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.byqss-history-item {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
  
  &:hover {
    transform: translateY(-1px);
  }
  
  &:active {
    transform: translateY(0);
  }
}

.byqss-results {
  margin-top: 5px;
}

.result-item {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  
  &:last-child {
    border-bottom: none;
  }
}

.result-content {
  padding: 12px 0;
}

.result-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.result-detail {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.time {
  color: #999;
}

.stats {
  display: flex;
  gap: 12px;
  
  span {
    color: #666;
  }
}

.byqss-loading,
.byqss-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #999;
  font-size: 14px;
}

// 覆盖antd-mobile SearchBar的样式
.adm-search-bar {
  background-color: #f5f5f5;
  border-radius: 20px;
  
  .adm-search-bar-input-box {
    background-color: transparent;
  }
  
  .adm-search-bar-input {
    font-size: 14px;
  }
}

// 覆盖antd-mobile List的样式
.adm-list {
  background-color: transparent;
  
  .adm-list-header {
    background-color: #fff;
    padding: 12px 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .adm-list-item {
    background-color: #fff;
    padding: 0 16px;
    
    &:not(:last-child) {
      border-bottom: 1px solid #f0f0f0;
    }
  }
}
